obj-m := v4l2loopback.o
CROSS_COMPILE:=XXXXX/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
KERNEL_SRC:=XXXXX/kernel
CC:=$(CROSS_COMPILE)gcc
LD:=$(CROSS_COMPILE)ld
all:
	make -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules ARCH=arm
clean:
	rm *.ko *.mod* *.symvers *.order *.o
